"If the Facilities window, Facility IDs tab, Facility IDs grid entry Send Facility on Claim box is selected, send the qualifier in the ID Qualifier list.
If Address, Type is Laboratory, then send LI.
If Address, Type is Miscellaneous, then send 77.
If Address, Entity ID is not blank, then send the Entity ID.
Otherwise, send FA.
In the ANSI 5010, hardcode 77.
"
"Send Facilities, Information tab, Name.
Address, Name (Facility)""